package com.cjmp.hao.testpkgnative_windows;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.util.Log;
import android.widget.Button;

public class EntryEntryAbilityActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        System.loadLibrary("jnijavacallcj");
        System.loadLibrary("jnipkgnative_windows");
    }

    public native String call_test_pkgnative_windows();

    public void onTestPackageButtonClick(View view) {
        Log.i("testPackage", ": "+call_test_pkgnative_windows());
        Button myButton = findViewById(R.id.myButton);
        String resultText = call_test_pkgnative_windows();
        myButton.setText(resultText);
    }
}